package flexexamples.repository.impl
{
	import flexexamples.domain.Project;
	import flexexamples.repository.AbstractRemoteObjectRepository;
	import flexexamples.repository.ProjectRepository;
	
	public class ProjectRepositoryRemoteObject extends AbstractRemoteObjectRepository implements ProjectRepository
	{
		public function getProject(id:int, result:Function, fault:Function=null):void {
			callServiceFunction(service.getProject(id), result, fault);
		}
		
		public function getAllProjects( result:Function, fault:Function = null ) : void{
			callServiceFunction(service.getAllProjects(), result, fault);
		}
		
		public function saveProject( project:Project, result:Function, fault:Function = null ) : void{
			callServiceFunction(service.saveProject(project), result, fault);
		}
	}
}